package com.haoze.common.feign;

import com.haoze.common.dto.UserEntity;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 调用admin服务
 * @author fcx
 * @date 2019年3月5日11:58:16
 */
@Service
@Headers("Content-Type:application/json")
@FeignClient(name = "api-admin")
public interface UserService {

    @GetMapping("/system/user/info/{account}")
    UserEntity info(@PathVariable(value = "account") String account);
}
